package com.wtwd.campus.entity;

import com.wtwd.campus.utils.DateUtils;


import java.util.Date;

/**
 * @Author ldaoliang
 * @Date create in 18:06 2021/6/29
 * @Description
 */
public class LocationDataVo {
    private String imei;
    private String latitude;
    private String longitude;
    private Integer locationType;
    private Long locationTime;
    private String locationTimeStr;
    private String address;

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public Integer getLocationType() {
        return locationType;
    }

    public void setLocationType(Integer locationType) {
        this.locationType = locationType;
    }

    public Long getLocationTime() {
        return locationTime;
    }

    public void setLocationTime(Long locationTime) {
        this.locationTime = locationTime;
        this.locationTimeStr = DateUtils.format(new Date(locationTime),DateUtils.dateFormat4);
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLocationTimeStr() {
        return locationTimeStr;
    }

    public void setLocationTimeStr(String locationTimeStr) {
        this.locationTimeStr = locationTimeStr;
    }

    @Override
    public String toString() {
        return "LocationDataVo{" +
                "imei='" + imei + '\'' +
                ", latitude='" + latitude + '\'' +
                ", longitude='" + longitude + '\'' +
                ", locationType=" + locationType +
                ", locationTime=" + locationTime +
                ", locationTimeStr='" + locationTimeStr + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
